#ifndef BOTSERVER_H
#define BOTSERVER_H

#include <QTcpServer>
#include <QDebug>
#include "botthread.h"
#include "parserapi.h"

class BotServer : public QTcpServer
{
    Q_OBJECT
public:
    explicit BotServer(QObject *parent = 0);

signals:
    void MsgUpdating(QString newMsg);
    void SocketListUpdate(QList<int> newSocketList);

public slots:
    void MsgUpdate(QString newMsg);
    void SocketListDelete(int oldSocket);
    void SocketListAdd(int newSocket);

protected:
    void incomingConnection(int socketDescriptor); //Called when new connection is available

private:
    QList<int>* socketList;


};

#endif // BOTSERVER_H
